
#ifndef TEST_SERVICE_INCLUDE
#define TEST_SERVICE_INCLUDE

#include "Game/WorkThread.h"
#include "Thread/ThreadMutex.h"
#include <vector>

using namespace std;
class User;
using namespace Felowria;

#define ADD_LIST_SIZE	2

class TestService : public WorkThread
{
public:
	TestService() {}
	~TestService() {}

protected:
	virtual bool Update();

public:
	void AddUser(User *user);
	void AddAllUser(User *user);
private:
	ThreadMutex mutex[ADD_LIST_SIZE];
	vector<User*> add_user_list[ADD_LIST_SIZE];
	vector<User*> user_list;
	
	ThreadMutex all_mutex[ADD_LIST_SIZE];
	vector<User*> add_all_user_list[ADD_LIST_SIZE];
	vector<User*> all_user_list;
};

#endif
